<?php
/**
 * Description of SiteObject
 *
 * @author nofear
 */
namespace Shared\Main;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="site_objects")
 * @ORM\Entity(repositoryClass="Shared\Main\Repository\SiteObject")
 * @ORM\InheritanceType("JOINED")
 * @ORM\DiscriminatorColumn(name="typeId", type="integer")
 * @ORM\DiscriminatorMap({
 *          "1" = "Product",
 *          "2" = "Page"
 *      })
 */
class SiteObject {
    
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    protected $id;
    
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }
}
